package com.heima.dome1;

import com.heima.domain.Student;

import java.util.TreeSet;

public class TestStu1 {
    public static void main(String[] args) {
        TreeSet<Student> treeSet=new TreeSet<>();
        Student s1=new Student("小张",13,82);
        Student s2=new Student("小黄",10,77);
        Student s3=new Student("小李",8,55);
        Student s4=new Student("小红",15,40);
        Student s5=new Student("小杨",10,100);

        treeSet.add(s1);
        treeSet.add(s2);
        treeSet.add(s3);
        treeSet.add(s4);
        treeSet.add(s5);

        System.out.println(treeSet);
    }
}
